package mx.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import mx.entity.Ticket;
import mx.entity.TicketOrder;

/**
 * 票订单service
 * 
 * @author root
 *
 */
@Service("ticketOrderService")
public interface TicketOrderService {

	/**
	 * 按条件查询所有订单
	 * 
	 * @return
	 */
	public List<TicketOrder> list(Map<String, Object> map);

	/**
	 * 查询总记录数
	 * 
	 * @param map
	 * @return
	 */
	public Long getTotal(Map<String, Object> map);

	/**
	 * 更新票订单信息
	 * 
	 * @param ticketOrder
	 * @return
	 */
	public Integer update(TicketOrder ticketOrder);
	/**
	 * 添加订单
	 * 
	 * @param ticket
	 * @return
	 */
	public Integer add(TicketOrder ticketOrder);
}
